<li>
  <%= article.title %>
  [<% if @websitesinf.has_article?(article.title) %>
    <%= link_to 'remove article', 
                :controller => 'websites',:action => 'destroy1',:id => article.id, :websitesinf_id => @websitesinf.id,
                :method => :delete %>
  <% else %>
    <%= link_to 'assign article', 
                :controller => 'websites',:action => 'update1',:id => article.id, :websitesinf_id => @websitesinf.id,     
                :method => :put %>
  <% end %>]
</li>
